package com.frank.stock4j.tusharepro.bean;

import com.frank.stock4j.tusharepro.BaseBean;
import com.frank.stock4j.tusharepro.http.BaseRequestParam;

/**
* 描述：获取上市公司增减持数据，了解重要股东近期及历史上的股份增减变化
* @author: codesmith
**/
public interface StkHoldertradeBean extends BaseBean {
    String API_NAME = "stk_holdertrade";
    
    interface Fields {
    String ts_code = "ts_code";    //TS代码
    String ann_date = "ann_date";    //公告日期
    String holder_name = "holder_name";    //股东名称
    String holder_type = "holder_type";    //股东类型G高管P个人C公司
    String in_de = "in_de";    //类型IN增持DE减持
    String change_vol = "change_vol";    //变动数量
    String change_ratio = "change_ratio";    //占流通比例（%）
    String after_share = "after_share";    //变动后持股
    String after_ratio = "after_ratio";    //变动后占流通比例（%）
    String avg_price = "avg_price";    //平均价格
    String total_share = "total_share";    //持股总数
    String begin_date = "begin_date";    //增减持开始日期
    String close_date = "close_date";    //增减持结束日期
    }
    
    interface Params {
        ts_code ts_code = new ts_code();
        /*
        * TS股票代码
        */
        class ts_code extends BaseRequestParam {
            { key = "ts_code"; }
        }
        ann_date ann_date = new ann_date();
        /*
        * 公告日期
        */
        class ann_date extends BaseRequestParam {
            { key = "ann_date"; }
        }
        start_date start_date = new start_date();
        /*
        * 公告开始日期
        */
        class start_date extends BaseRequestParam {
            { key = "start_date"; }
        }
        end_date end_date = new end_date();
        /*
        * 公告结束日期
        */
        class end_date extends BaseRequestParam {
            { key = "end_date"; }
        }
        trade_type trade_type = new trade_type();
        /*
        * 交易类型IN增持DE减持
        */
        class trade_type extends BaseRequestParam {
            { key = "trade_type"; }
        }
        holder_type holder_type = new holder_type();
        /*
        * 股东类型C公司P个人G高管
        */
        class holder_type extends BaseRequestParam {
            { key = "holder_type"; }
        }
    }
}